<?php

namespace App\Exports;

use Maatwebsite\Excel\Concerns\FromCollection;

class ExcelExport implements FromCollection
{
    public function __construct($data) {
        $this->data = $data;
    }
    public function collection(): \Illuminate\Support\Collection
    {
        return collect($this->data);
    }
}

